import tkinter as tk

window = tk.Tk()
window.title("Tkinter 示例")
window.geometry("800x600")

frml = tk.Frame(window)
frml.pack(side=tk.LEFT, padx=20)

frmr = tk.Frame(window)
frmr.pack(side=tk.RIGHT, padx=20)

lvar = tk.StringVar()
label = tk.Label(frml, text="欢迎使用Tkinter！",
                 background="yellow",textvariable=lvar,
                 font=("Arial", 12),width=30,height=5)
label.pack(side=tk.LEFT, pady=20)

window.mainloop()
